﻿@model GameSite.Models.NewsCategoryModel
@{
    Layout = "~/Views/Shared/_NewsLayout.cshtml";
}
<h2>
    @Model.CategoryDispName
</h2>
<hr />
@foreach (var item in Model.GameNews)
{
    <div class="media">
        <a class="pull-left" href="#"><i class="icon-volume-up"></i></a>
        <div class="media-body">
            <ul class="inline">
                <li>【游戏公告】 </li>
                <li><a href="@Url.Action("Details", "GameNews", new { id = @item.ID })">
                    @Html.DisplayFor(modelItem => item.Title)
                </a></li>
                <li>[ @Html.DisplayFor(modelItem => item.DispTime) ] </li>
                <li><span class="label label-important" style="visibility: @(item.IsHot == 1 ? "visible" : "hidden");" >
                    hot</span> </li>
                <li><span class="label label-info" style="visibility: @(item.IsTop == 1 ? "visible" : "hidden");" >
                    Top</span></li>
        </div>
    </div>
}
@foreach (var item in Model.Activities)
{
    <div class="media">
        <a class="pull-left" href="#"><i class="icon-volume-up"></i></a>
        <div class="media-body">
            <ul class="inline">
                <li>【活动公告】 </li>
                <li><a href="@Url.Action("Details", "GameNews", new { id = @item.ID })">
                    @Html.DisplayFor(modelItem => item.Title)
                </a></li>
                <li>[ @Html.DisplayFor(modelItem => item.DispTime) ] </li>
        </div>
    </div>
}